/*	
 *				
 *					ISNW ---- It is a war.It is not warcraft!
 *
 *
 *					Author:					zhoukeli(haxixi_keli)
 *					Filename:				Image.h
 *					CreateTime:				2008/12/31
 *					ModifyTime:				2008/12/31
 *
 */

#ifndef __ISNW_IMAGE_H__
#define __ISNW_IMAGE_H__

#include "include/IImage.h"

namespace ISNW
{
namespace video
{
	class Image : public IImage
	{
	public:
		Image():Data(0),Pitch(0),BPP(0){}

	public:
		virtual color32 getPixel(u32 i,u32 j) const;

		virtual core::dimention2di getDimention() const;

	protected:
		//! members

		u32 Pitch;

		u32 BPP;

		color32* Data;

		core::dimention2di Dimention;

		friend class BMPImageLoader;

	};
} // end namespace video
} // end namespace ISNW
#endif